package com.smart.modules.genealogy.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.smart.system.common.base.BaseEntity;

/**
 * 家谱人员对象 genealogy_person
 */

public class GenealogyPerson extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 家谱人员ID */
    private Long genealogyPersonId;

    /** 家谱人员父编号 */

    private Long genealogyPersonPid;


    /** 家谱ID */

    private Long genealogyId;

    private String genealogyName;

    /** 姓名 */

    private String personName;

    /** 性别 */

    private String personSex;

    /** 出生日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")

    private Date birthDate;

    /** 死亡日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")

    private Date deathDate;

    /** 头像 */

    private String personAvatar;

    /** 逻辑删除标识(1:已删除;0:未删除) */
    @TableLogic
    private Long deleted;

    public String getGenealogyName() {
        return genealogyName;
    }

    public void setGenealogyName(String genealogyName) {
        this.genealogyName = genealogyName;
    }

    public void setGenealogyPersonId(Long genealogyPersonId)
    {
        this.genealogyPersonId = genealogyPersonId;
    }

    public Long getGenealogyPersonId()
    {
        return genealogyPersonId;
    }
    public void setGenealogyPersonPid(Long genealogyPersonPid)
    {
        this.genealogyPersonPid = genealogyPersonPid;
    }

    public Long getGenealogyPersonPid()
    {
        return genealogyPersonPid;
    }

    public void setGenealogyId(Long genealogyId)
    {
        this.genealogyId = genealogyId;
    }

    public Long getGenealogyId()
    {
        return genealogyId;
    }
    public void setPersonName(String personName)
    {
        this.personName = personName;
    }

    public String getPersonName()
    {
        return personName;
    }
    public void setPersonSex(String personSex)
    {
        this.personSex = personSex;
    }

    public String getPersonSex()
    {
        return personSex;
    }
    public void setBirthDate(Date birthDate)
    {
        this.birthDate = birthDate;
    }

    public Date getBirthDate()
    {
        return birthDate;
    }
    public void setDeathDate(Date deathDate)
    {
        this.deathDate = deathDate;
    }

    public Date getDeathDate()
    {
        return deathDate;
    }
    public void setPersonAvatar(String personAvatar)
    {
        this.personAvatar = personAvatar;
    }

    public String getPersonAvatar()
    {
        return personAvatar;
    }
    public void setDeleted(Long deleted)
    {
        this.deleted = deleted;
    }

    public Long getDeleted()
    {
        return deleted;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("genealogyPersonId", getGenealogyPersonId())
                .append("genealogyPersonPid", getGenealogyPersonPid())
                .append("genealogyId", getGenealogyId())
                .append("personName", getPersonName())
                .append("personSex", getPersonSex())
                .append("birthDate", getBirthDate())
                .append("deathDate", getDeathDate())
                .append("personAvatar", getPersonAvatar())
                .append("deleted", getDeleted())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("createBy", getCreateBy())
                .append("updateBy", getUpdateBy())
                .toString();
    }
}
